package org.duiduo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.duiduo.api.bean.OrderVO;
import org.duiduo.api.request.OrderFindPageRequest;
import org.duiduo.entity.Order;
import org.duiduo.entity.User;

public interface OrderService {

    // void updateState(String tradeNo, Integer state, String gmtPayment);

    Order buy(Long bookId, User user);

    int buySuccess(OrderVO orderVO, User user);

    Page<Order> findPage(User user, OrderFindPageRequest request);

    int deleteById(Integer id);
}
